package com.yan.design.two.behavior.s11;

/**
 * 11. 责任链模式
 *        请求类
 * @author shengren.yan
 * @create 2022-08-15
 */
public class PurchasrRequest {

    // 请求类型
    private int type;
    private float price;
    private int id = 0;
    // 构造方法
    public PurchasrRequest(int type, float price, int id) {
        this.type = type;
        this.price = price;
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public float getPrice() {
        return price;
    }

    public int getId() {
        return id;
    }
}
